package com.fsi.client.util;

import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RadioButton;

public class RadioBox extends HorizontalPanel {
	private final HorizontalPanel content = new HorizontalPanel();

	public RadioBox() {
		this.add(content);
		this.setBorderWidth(2);
	}

	public RadioBox(String title) {
		content.add(new Label(title));
		this.add(content);

		this.setBorderWidth(2);
	}

	public RadioButton add(String group, String value) {
		RadioButton newButton = new RadioButton(group, value);
		this.content.add(newButton);
		return newButton;
	}

}
